<div class='head'>
  <div class='title'>  
    <h1>短信</h1>
  </div>
  <div class='tools'>
    <div class="type">
      <%= link_to_function '今日',"$('when').value='today'", :title => '今日' %>
      <%= link_to_function '昨日',"$('when').value='1.days.ago'", :title => '昨日' %>
      <%= link_to_function '前日',"$('when').value='2.days.ago'", :title => '前日' %>
    </div>
  </div>
</div>
<div class='sms'>
  <div class='tip'>
    <div class='info'>
      共<b><%= @sms.total_entries %></b>贴
    </div>
    <div class='will_paginate'>
      <%= remote_will_paginate @sms %>
    </div>    
  </div>
  <% @sms.each do |sm| %>
  <div id='sm_<%= sm.id %>' class='sm <%= cycle '','h' %>'>
    
  </div>
  <% end %>
  <% if @sms.empty? %>
  <div id="no_record">无记录！</div>
  <% end %>
  <div class='tip bottom'>
    <div class='info'>
      共<b><%= @sms.total_entries %></b>贴
    </div>
    <div class='will_paginate'>
      <%= remote_will_paginate @sms %>
    </div>
  </div>
</div>
<%= observe_form :search_type_form,
      :function => "searching()",
      :frequency => 0.5
  %>